#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <cmath>

using namespace std;

class Student
{
public:
    string myID;
    string myName;
    int myScore;

    static int sumScore;
    static double averageScore;
    static int classSize;

    Student(string& id, string  name, int score) : myID(id), myName(std::move(name)), myScore(score)
    {
        classSize += 1;
        sumScore += score;
        averageScore = (float)sumScore / (float)classSize;
    }

    // 这个 static 不知道是什么，先理解成Python里面的类方法和类变量吧
    static int getNum()
    {
        return classSize;
    }

    static double getAverage()
    {
        return averageScore;
    }
};

int Student::sumScore = 0;
double Student::averageScore = 0;
int Student::classSize = 0;

int main(int argc, char const *argv[])
{
    int score;
    string id, name;

    vector<Student> vec;
    while (cin >> id)
    {
        cin >> name >> score;
        vec.emplace_back(id, name, score);
    }

    cout << vec[0].getNum() << " " << (int)round(vec[0].getAverage());

    return 0;
}
